package com.project.server.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDate;
import java.time.LocalDateTime;

@Data
@TableName("staff")
@Schema(description = "员工")
public class Staff {
    @TableId(type = IdType.AUTO)
    private Long id;

    @Schema(description = "员工姓名")
    private String name;

    @Schema(description = "手机号")
    private String phone;

    @Schema(description = "所属餐厅ID")
    private Long restaurantId;

    @Schema(description = "职位")
    private String position;

    @Schema(description = "状态：0-离职 1-在职")
    private Integer status;

    @Schema(description = "入职时间")
    private LocalDate hireDate;

    private LocalDateTime createTime;

    private LocalDateTime updateTime;
}
